package weekMatch.one_348;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashSet;
import java.util.Set;

public class LeeCode_01 {
    public static void main(String[] args) {
        System.out.println(minimizedStringLength("cbbd"));
        System.out.println(minimizedStringLength("ipi"));
    }
    private static int minimizedStringLength(String s) {
        int n = s.length();
        Set<Character> set = new HashSet<>();
        for (int i = 0; i < n; i++) {
            set.add(s.charAt(i));
        }
        return set.size();
    }
}
